package pm.project.bean;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

public class ProjectBean {

	private int projectid;
	private String projectName;
	private String projectCreator;
	private String workgroupName;
	private String projectDescribe;
	private String projectFilename;
	private Timestamp createTime;
	private Timestamp updateTime;
	public String getCreateTime() {
		
		 Date newtime = createTime;
		 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		 String dateString = format.format(newtime);	
		 return dateString;
	}
	public Timestamp getCreateTimestamp(){
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public String getUpdateTime() {
		 Date newtime = updateTime;
		 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		 String dateString = format.format(newtime);	
		 return dateString;
	}
	public Timestamp getUpdateTimestamp(){
		return updateTime;
	}
	
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	public int getProjectid() {
		return projectid;
	}
	public void setProjectid(int projectid) {
		this.projectid = projectid;
	}
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public String getProjectCreator() {
		return projectCreator;
	}
	public void setProjectCreator(String projectCreator) {
		this.projectCreator = projectCreator;
	}
	public String getWorkgroupName() {
		return workgroupName;
	}
	public void setWorkgroupName(String workgroupName) {
		this.workgroupName = workgroupName;
	}
	public String getProjectDescribe() {
		return projectDescribe;
	}
	public void setProjectDescribe(String projectDescribe) {
		this.projectDescribe = projectDescribe;
	}
	public String getProjectFilename() {
		return projectFilename;
	}
	public void setProjectFilename(String projectFilename) {
		this.projectFilename = projectFilename;
	}
}
